/**
 *  timer.h - The timer driver.
 *
 *  Copyright (C) 2008-2010 ZhangHu
 *  All rights reserved.
 *  E-MAIL: anmnmnly@gmail.com
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
#ifndef __TIMER_H__
#define __TIMER_H__

#include "drivers/chdev.h"


typedef struct _timer_duty_cycle
{
    uint32 cycle;
    uint32 high_duration; // (%)
} timer_duty_cycle_t;


enum TimerCMD
{
    TIMER_CMD_START,  // Start timer.
    TIMER_CMD_STOP,   // Stop timer.
    TIMER_CMD_CHG     // Change timer parameter.
};


#endif

